package com.unme.service.impl;

import com.unme.dao.UserDao;
import com.unme.model.User;
import com.unme.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("userService")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public void register(User user) {
        //step1 从微信获取基本信息

        //step2 获取用户自定义的标签

        //step2 保存用户的数据


    }

    @Override
    public void addUser(User user) {
        userDao.addUser(user);
    }

    @Override
    public List<User> findAllUser(User user) {
        return userDao.findUser(user);
    }

    @Override
    public void deleteUser(User user) {
      userDao.deleteUser(user);
    }

    @Override
    public void updateUser(User user) {
         userDao.updateUser(user);
    }

    @Override
    public User getUserById(User user) {
        return userDao.getUserById(user);
    }
}
